//
//  FHYModel.h
//  Education
//
//  Created by jxyeagle on 14-8-13.
//  Copyright (c) 2014年 姬鑫宇. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MTLModel.h"

#define EducationModel [FHYModel sharedFHYModel]
#define DotaVersion @"2.3.2"
#define AddictionParm [FHYModel comParametersConfigration]

#define DataModelCommonLog NSLog(@"JSON_CommonLog\n%@,\n %@,\n describe:%@\n self.userId is:%@",JSON, operation.request,[JSON objectForKey:@"describe"],self.userId);
#define DataModelWithoutUinicode NSLog(@"JSON_with_no_unicode\n%@,%@",[[JSON description]stringByReplacingUincode], operation.request);

@class FHYLogInModel;
@class FHYTestInfoModel;

@interface FHYModel : NSObject

@property (nonatomic, retain) id AFNetWorkingClient;
@property (nonatomic, strong) NSString * version;
@property (nonatomic, strong) NSString * version2;
@property (nonatomic, strong) NSString * version23;
@property (nonatomic, strong) NSString * client;
@property (nonatomic, strong) NSString * jsession;
@property (nonatomic, strong) NSString * userId;

+ (instancetype)sharedFHYModel;

+ (NSDictionary *)comParametersConfigration;
+ (id)loginWithBlock:(void(^)(BOOL result, FHYLogInModel* userDic,NSString* failedMessage,NSError* error))block withUserName:(NSString *)userName password:(NSString *)password;
+ (id)testingWithBlock:(void(^)(BOOL result, NSArray* testArray,NSError* error))block;
+ (id)infoTestingWithBlock:(void(^)(BOOL result, FHYTestInfoModel* infoTest,NSError* error))block;

@end


@interface FHYLogInModel :  MTLModel

@property (nonatomic, retain) NSString *position;
@property (nonatomic, retain) NSString *phone;
@property (nonatomic, retain) NSString *domainname;
@property (nonatomic, retain) NSString *usertype2;
@property (nonatomic, retain) NSString *usercode;
@property (nonatomic, retain) NSString *orgname;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, assign) NSInteger userId;
@property (nonatomic, retain) NSString *msg;
@property (nonatomic, retain) NSString *photo;
@property (nonatomic, retain) NSString *mobile;

@end

@interface FHYTestModel : MTLModel

@property (nonatomic, retain) NSString *title;
@property (nonatomic, assign) int paperAnswerTime;
@property (nonatomic, retain) NSString *beginTime;
@property (nonatomic, assign) long arrangeId;
@property (nonatomic, retain) NSString *endTime;

@end

@interface FHYTestInfoModel : MTLModel

@property (nonatomic, assign) int paperAnswerTime;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *beginTime;
@property (nonatomic, assign) int mark;
@property (nonatomic, retain) NSString *endTime;
@property (nonatomic, assign) int passMark;

@end